// 引入 request 文件
import request from '@/utils/request'
import type { VisiteListParams } from "./types"
 
// 分页查询列表
export const visitList = (params: VisiteListParams) => {
	return request({
		url: '/point/visit/list',
		method: 'get',
		data: params
	})
}

//单条数据详情
export const visitItem = (visitId : string) => {
	return request({
		url: `/point/visit/${visitId}`,
		method: 'get'
	})
}

//删除
export const deleteVisitItem = (visitId: string) => {
	return request({
		url: `/point/visit/${visitId}`,
		method: 'delete'
	})
}